﻿<div class="modal">
    <div class="modal-header">
        <button type="button" class="close" data-bind="click: close" data-dismiss="modal" aria-hidden="true">
            &times;</button>
        <h3>Add Order Line</h3>
    </div>
    <div class="modal-body">
        <div class="control-group">
            <label class="control-label" for="inputQuantity">
                Quantity</label>
            <div class="controls">
                <input type="text" id="inputQuantity" placeholder="Quantity" data-bind="value: orderLine().Quantity">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputItem">
                Item</label>
            <div class="controls">
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#" style="width: 150px">Select Item..
                        <span class="caret"></span>
                </a>
                <ul class="dropdown-menu" id="inputCustomer" data-bind="foreach: items()">
                    <li style="cursor: pointer">
                        <a data-bind="click: $parent.selectItem" style="height: 45px">
                            <div class="media">
                                <img data-bind="attr:{src: ImageUrl }" alt="" style="width: 30px" class="pull-left" />
                                <div class="media-body">
                                    <span data-bind="text: ItemCode"></span>
                                </div>
                            </div>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
